package com.xiegang.apipassenger.Service;

import com.xiegang.apipassenger.remote.ServiceOrderClient;
import com.xiegang.internalcommon.dto.ResponseResult;
import com.xiegang.internalcommon.request.OrderRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xieGang
 * @description
 * @date 2023/4/7 15:36
 **/
@Service
public class OrderService {

    @Autowired
    private ServiceOrderClient serviceOrderClient;

    public ResponseResult add(OrderRequest orderRequest){
        return serviceOrderClient.add(orderRequest);
    }

    public ResponseResult getName(){
        return serviceOrderClient.getName();
    }
}
